import request from '@/utils/request'

// 查询创作人列表
export function listMusicCreator(query) {
  return request({
    url: '/music/musicCreator/list',
    method: 'get',
    params: query
  })
}

// 查询创作人详细
export function getMusicCreator(id) {
  return request({
    url: '/music/musicCreator/' + id,
    method: 'get'
  })
}

// 新增创作人
export function addMusicCreator(data) {
  return request({
    url: '/music/musicCreator',
    method: 'post',
    data: data
  })
}

// 修改创作人
export function updateMusicCreator(data) {
  return request({
    url: '/music/musicCreator',
    method: 'put',
    data: data
  })
}

// 删除创作人
export function delMusicCreator(id) {
  return request({
    url: '/music/musicCreator/' + id,
    method: 'delete'
  })
}
